package com.qyc.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * 检疫登记
 * @TableName quarantine_registration
 */
@TableName(value ="quarantine_registration")
//@Data
public class QuarantineRegistration implements Serializable {
    /**
     * 记录id
     */
    @TableId(type = IdType.AUTO)
    private Integer grId;

    /**
     * 检疫时间
     */
    private String grTime;

    /**
     * 检疫证明图片
     */
    private String grImg;

    /**
     * 检疫机构
     */
    private String grMechanism;

    /**
     * 批次id
     */
    private String grBatchId;

    /**
     * 检疫结果
     */
    private String bQualified;

    public QuarantineRegistration() {
    }

    public QuarantineRegistration(Integer grId, String grTime, String grImg, String grMechanism, String grBatchId, String bQualified) {
        this.grId = grId;
        this.grTime = grTime;
        this.grImg = grImg;
        this.grMechanism = grMechanism;
        this.grBatchId = grBatchId;
        this.bQualified = bQualified;
    }

    public Integer getGrId() {
        return grId;
    }

    public void setGrId(Integer grId) {
        this.grId = grId;
    }

    public String getGrTime() {
        return grTime;
    }

    public void setGrTime(String grTime) {
        this.grTime = grTime;
    }

    public String getGrImg() {
        return grImg;
    }

    public void setGrImg(String grImg) {
        this.grImg = grImg;
    }

    public String getGrMechanism() {
        return grMechanism;
    }

    public void setGrMechanism(String grMechanism) {
        this.grMechanism = grMechanism;
    }

    public String getGrBatchId() {
        return grBatchId;
    }

    public void setGrBatchId(String grBatchId) {
        this.grBatchId = grBatchId;
    }

    public String getbQualified() {
        return bQualified;
    }

    public void setbQualified(String bQualified) {
        this.bQualified = bQualified;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QuarantineRegistration that = (QuarantineRegistration) o;
        return Objects.equals(grId, that.grId) && Objects.equals(grTime, that.grTime) && Objects.equals(grImg, that.grImg) && Objects.equals(grMechanism, that.grMechanism) && Objects.equals(grBatchId, that.grBatchId) && Objects.equals(bQualified, that.bQualified);
    }

    @Override
    public int hashCode() {
        return Objects.hash(grId, grTime, grImg, grMechanism, grBatchId, bQualified);
    }

    @Override
    public String toString() {
        return "QuarantineRegistration{" +
                "grId=" + grId +
                ", grTime='" + grTime + '\'' +
                ", grImg='" + grImg + '\'' +
                ", grMechanism='" + grMechanism + '\'' +
                ", grBatchId='" + grBatchId + '\'' +
                ", bQualified='" + bQualified + '\'' +
                '}';
    }

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}